package com.login.learn.service.impl;

import com.login.learn.service.JoinCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.stereotype.Service;
import com.login.learn.utils.JoinFactory;

import javax.annotation.PostConstruct;
import java.util.Locale;

/**
 * @author 乔巴
 * @date 2021/5/13 10:01
 **/
@Service
public class JoinCompanyServiceImpl implements JoinCompanyService {

    @Autowired
    JoinFactory joinFactory;
    @Autowired
    MessageSource messageSource;

    @Override
    public void join(int type) {
        // 校验职位，校验年龄
        AbstractJoinCompanyService joinService = joinFactory.getJoinService(type);
        joinService.commonJoin();
    }
}
